# ---------------------------------------------------------------------------
# Author: Min Feng
# Date: 01/04/08
# searchs datasets automaticly of the given path and row,
#  and downloads images from SILO ftp server.
#----------------------------------------------------------------------------


import os
import configure

_conf = configure.configure()

_filename = _conf.generateFileName('mirror.', '.txt')
_out = file(_filename, 'w')

_list = _conf.getDatasetList()
for _f in _list:
    _out.write(_f + '\n')

_out.close()

print 'save to', _filename, len(_list), 'datasets'
